package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class Sterilize {
    private String id;

    private String tabName;

    private String sterilizeType;

    private String deviceCode;

    private String sterilizeWater;

    private String sterilizeTime;

    private String sterilizeUserName;

    private Date createTime;

    private Date updateTime;

    private String status;

    private String whiteDay;

    private String dutyDay;
    private String sterilizeStatus;

    private int count;
    private int index;
    private String processName;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("1", "生产", "2", "维保");

    public static final transient Map<String, String> STATUSMAP1 =
            ImmutableMap.of("0", "关闭", "1", "启动");

//    public static final transient Map<String, String> STATUSNAMEMAP =
//            ImmutableMap.of("1", "配拌投料", "2", "挤塑直切", "3", "U管成型", "4", "包装");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getTabName() {
        return tabName;
    }

    public void setTabName(String tabName) {
        this.tabName = tabName == null ? null : tabName.trim();
    }

    public String getSterilizeTypeCn() {
        return STATUSMAP.get(getSterilizeType());
    }
    public String getSterilizeType() {
        return sterilizeType;
    }

    public void setSterilizeType(String sterilizeType) {
        this.sterilizeType = sterilizeType == null ? null : sterilizeType.trim();
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode == null ? null : deviceCode.trim();
    }

    public String getSterilizeWater() {
        return sterilizeWater;
    }

    public void setSterilizeWater(String sterilizeWater) {
        this.sterilizeWater = sterilizeWater == null ? null : sterilizeWater.trim();
    }

    public String getSterilizeTime() {
        return sterilizeTime;
    }

    public void setSterilizeTime(String sterilizeTime) {
        this.sterilizeTime = sterilizeTime == null ? null : sterilizeTime.trim();
    }

    public String getSterilizeUserName() {
        return sterilizeUserName;
    }

    public void setSterilizeUserName(String sterilizeUserName) {
        this.sterilizeUserName = sterilizeUserName == null ? null : sterilizeUserName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getWhiteDay() {
        return whiteDay;
    }

    public void setWhiteDay(String whiteDay) {
        this.whiteDay = whiteDay == null ? null : whiteDay.trim();
    }

    public String getDutyDay() {
        return dutyDay;
    }

    public void setDutyDay(String dutyDay) {
        this.dutyDay = dutyDay == null ? null : dutyDay.trim();
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getSterilizeStatus() {
        return sterilizeStatus;
    }

    public String getSterilizeStatusCn() {
        return STATUSMAP1.get(getSterilizeStatus());
    }

    public void setSterilizeStatus(String sterilizeStatus) {
        this.sterilizeStatus = sterilizeStatus;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public String getCreateTimeFt(){
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }
}